package com.spic.business.registrationform.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.spic.business.registrationform.mapper.ArchiveStaffPromotionRecordMapper;
import com.spic.business.registrationform.domain.ArchiveStaffPromotionRecord;
import com.spic.business.registrationform.service.IArchiveStaffPromotionRecordService;

/**
 * 职称/技能等级晋升情况记录Service业务层处理
 * 
 * @author spic
 * @date 2022-07-20
 */
@Service
public class ArchiveStaffPromotionRecordServiceImpl implements IArchiveStaffPromotionRecordService 
{
    @Autowired
    private ArchiveStaffPromotionRecordMapper archiveStaffPromotionRecordMapper;

    /**
     * 查询职称/技能等级晋升情况记录
     * 
     * @param promotionId 职称/技能等级晋升情况记录主键
     * @return 职称/技能等级晋升情况记录
     */
    @Override
    public ArchiveStaffPromotionRecord selectArchiveStaffPromotionRecordByPromotionId(Long promotionId)
    {
        return archiveStaffPromotionRecordMapper.selectArchiveStaffPromotionRecordByPromotionId(promotionId);
    }

    /**
     * 查询职称/技能等级晋升情况记录列表
     * 
     * @param archiveStaffPromotionRecord 职称/技能等级晋升情况记录
     * @return 职称/技能等级晋升情况记录
     */
    @Override
    public List<ArchiveStaffPromotionRecord> selectArchiveStaffPromotionRecordList(ArchiveStaffPromotionRecord archiveStaffPromotionRecord)
    {
        return archiveStaffPromotionRecordMapper.selectArchiveStaffPromotionRecordList(archiveStaffPromotionRecord);
    }

    /**
     * 新增职称/技能等级晋升情况记录
     * 
     * @param archiveStaffPromotionRecord 职称/技能等级晋升情况记录
     * @return 结果
     */
    @Override
    public int insertArchiveStaffPromotionRecord(ArchiveStaffPromotionRecord archiveStaffPromotionRecord)
    {
        return archiveStaffPromotionRecordMapper.insertArchiveStaffPromotionRecord(archiveStaffPromotionRecord);
    }

    /**
     * 修改职称/技能等级晋升情况记录
     * 
     * @param archiveStaffPromotionRecord 职称/技能等级晋升情况记录
     * @return 结果
     */
    @Override
    public int updateArchiveStaffPromotionRecord(ArchiveStaffPromotionRecord archiveStaffPromotionRecord)
    {
        return archiveStaffPromotionRecordMapper.updateArchiveStaffPromotionRecord(archiveStaffPromotionRecord);
    }

    /**
     * 批量删除职称/技能等级晋升情况记录
     * 
     * @param promotionIds 需要删除的职称/技能等级晋升情况记录主键
     * @return 结果
     */
    @Override
    public int deleteArchiveStaffPromotionRecordByPromotionIds(Long[] promotionIds)
    {
        return archiveStaffPromotionRecordMapper.deleteArchiveStaffPromotionRecordByPromotionIds(promotionIds);
    }

    /**
     * 删除职称/技能等级晋升情况记录信息
     * 
     * @param promotionId 职称/技能等级晋升情况记录主键
     * @return 结果
     */
    @Override
    public int deleteArchiveStaffPromotionRecordByPromotionId(Long promotionId)
    {
        return archiveStaffPromotionRecordMapper.deleteArchiveStaffPromotionRecordByPromotionId(promotionId);
    }

    @Override
    public int deleteArchiveStaffPromotionRecordByStaffArchiveIds(String[] staffArchiveIds) {
        return archiveStaffPromotionRecordMapper.deleteArchiveStaffPromotionRecordByStaffArchiveIds(staffArchiveIds);
    }
}
